import '@css/sellersPage.css'

window.addEventListener("DOMContentLoaded", async () => {

  //h3标签背景色切换
  document.querySelectorAll("h3").forEach(item => {
    item.addEventListener("click", async () => {
      if (item.style.backgroundColor != "gray") {
        item.style.backgroundColor = "gray"
        item.style.color = "white"
      } else {
        item.style.backgroundColor = "#485069"
        item.style.color = "rgb(175, 175, 175)"

      }
    })
  })

  await document.querySelector("body").addEventListener("click", async (e) => {
    e.preventDefault()
  })


  await document.querySelector('#claimsListBtn').addEventListener('click', async () => {
    location = `salerClaimPage.html`
  })
  await document.querySelector('#userListBtn').addEventListener('click', async () => {
    location = `salerUserPage.html`
  })



})

